package org.shiwen.week6;

public class TestV4 {
    public static void main(String[] args) {
        StudentV4 s1 = new StudentV4();
        s1.setName("张三");
        s1.setAge(18);
        s1.setGender("男");
        s1.setID("2019001");
        System.out.println(s1.getName()+"的年龄是"+s1.getAge()+"岁");

        s1.setAge(10);
        System.out.println(s1.getName()+"的年龄是"+s1.getAge()+"岁");
    }
}
